package com.hongminzheng.openapi.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hmz
 * @version v1.0
 * @data 2020/10/27
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Token {
  /**
   * id token主键id
   * userId 客户id
   * accessToken token内容
   * startTime 开始时间
   * expireTime 结束时间
   */
  private Integer id;
  private Integer userId;
  private String accessToken;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date startTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date expireTime;
  
}
